﻿package mortal.game.view.FirstRechargeDay500
{
    import mortal.game.cache.*;
    import mortal.game.view.active11.*;

    public class RechargeActiveUtil extends Object
    {
        public static var dou11RechargeHasGetNum:int;
        public static var doubleTotalNum:int = 50;
        public static var doublleOneMoney:int = 200;

        public function RechargeActiveUtil()
        {
            return;
        }// end function

        public static function hasAct11Re200Rw() : Boolean
        {
            var _loc_7:int = 0;
            var _loc_1:* = Cache.instance.rebate.rechargeSum;
            var _loc_2:* = dou11RechargeHasGetNum;
            var _loc_3:* = dou11RechargeHasGetNum;
            var _loc_4:* = _loc_1;
            var _loc_5:* = doubleTotalNum;
            var _loc_6:* = doublleOneMoney;
            if (_loc_3 < _loc_5)
            {
                _loc_7 = (_loc_3 + 1) * _loc_6;
                if (_loc_4 >= _loc_7)
                {
                    return true;
                }
            }
            return false;
        }// end function

        public static function canShowIcon() : Boolean
        {
            if (Active11Util.isInActive11Card() == false)
            {
                return false;
            }
            if (dou11RechargeHasGetNum >= doubleTotalNum)
            {
                return false;
            }
            return true;
        }// end function

    }
}
